<?php

namespace App\BO\Order\CreateOrder;

class CreateOrderInfo
{
    /**
     * @var int
     */
    public $userId;

    /**
     * @var int
     */
    public $cityId;

    /**
     * @var int
     */
    public $productSkuId;

    /**
     * @var int
     */
    public $addressId;

    /**
     * 购物车ID
     * @var int
     */
    public $cartItemId;

    /**
     * 备注
     * @var string
     */
    public $remark = '';

    /**
     * 使用的优惠券ID
     * @var int
     */
    public $userCouponId = 0;

    /**
     * 是否使用余额
     * @var int
     */
    public $userBalance = 0;

    /**
     * @var string
     */
    public $assignDate;

    /**
     * @var int
     */
    public $assignTime;

    /**
     * @return int
     */
    public function getUserBalance(): int
    {
        return $this->userBalance;
    }

    /**
     * @return int
     */
    public function getProductSkuId(): int
    {
        return $this->productSkuId;
    }

    /**
     * @return int
     */
    public function getAddressId(): int
    {
        return $this->addressId;
    }

    /**
     * @return int
     */
    public function getCartItemId(): int
    {
        return $this->cartItemId;
    }

    /**
     * @return string
     */
    public function getRemark(): string
    {
        return $this->remark;
    }

    /**
     * @return int
     */
    public function getUserCouponId(): int
    {
        return $this->userCouponId;
    }

    /**
     * @return int
     */
    public function getCityId(): int
    {
        return $this->cityId;
    }

    /**
     * @param int $cityId
     */
    public function setCityId(int $cityId): void
    {
        $this->cityId = $cityId;
    }

    /**
     * @return string
     */
    public function getAssignDate(): string
    {
        return (string)$this->assignDate;
    }

    /**
     * @return int
     */
    public function getAssignTime(): int
    {
        return (string)$this->assignTime;
    }

    /**
     * @param int $userId
     */
    public function setUserId(int $userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return int
     */
    public function getUserId(): int
    {
        return $this->userId;
    }
}
